package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 留言实体层
 * @author zhaojw
 *
 */
@Entity
@Table(name="jm_comment")
public class Comment implements Serializable {


	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name="cment_id",strategy="uuid")
	@GeneratedValue(generator="cment_id")
	@Column(name="cment_id",nullable=false,unique=true,length=32)
	private String cmentId;//留言主键
	@Column(name="cment_date",nullable=false,length=32)
	private String cmentDate;//留言时间
	@Column(name="rep_date",length=32)
	private String repDate;//回复留言时间
	@Column(name="cment_value",nullable=false,length=20000)
	private String cmentValue;//留言内容
	@Column(name="replace_cment",length=20000)
	private String replaceCment;//留言回复
	@ManyToOne
	@JoinColumn(name="com_id")
	private Company comId;//企业id
	@ManyToOne
	@JoinColumn(name="user_id")
	private User userId;//用户id
	public String getCmentId() {
		return cmentId;
	}
	public void setCmentId(String cmentId) {
		this.cmentId = cmentId;
	}
	public String getCmentDate() {
		return cmentDate;
	}
	public void setCmentDate(String cmentDate) {
		this.cmentDate = cmentDate;
	}
	public String getCmentValue() {
		return cmentValue;
	}
	public void setCmentValue(String cmentValue) {
		this.cmentValue = cmentValue;
	}
	public String getReplaceCment() {
		return replaceCment;
	}
	public void setReplaceCment(String replaceCment) {
		this.replaceCment = replaceCment;
	}
	public Company getComId() {
		return comId;
	}
	public void setComId(Company comId) {
		this.comId = comId;
	}
	public User getUserId() {
		return userId;
	}
	public void setUserId(User userId) {
		this.userId = userId;
	}
	public String getRepDate() {
		return repDate;
	}
	public void setRepDate(String repDate) {
		this.repDate = repDate;
	}
}
